<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <title>添加客户资源</title>
  <meta name="renderer" content="webkit">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
  <link rel="stylesheet" href="../../static/layui/css/layui.css" media="all">
</head>
<body>
<form id="myform" class="layui-form" lay-filter="layuiadmin-form-admin" id="layuiadmin-form-admin" style="padding: 20px 30px 0 0;">
  <input type="hidden" name="customer_code">
  <input type="hidden" name="customer_name">
  <!--提醒名称-->
  <div class="layui-form-item">
    <label class="layui-form-label">提醒名称：</label>
    <div class="layui-input-inline">
      <input type="text" name="remind_name" value="" id="remind_name" lay-verify="required" autocomplete="off" class="layui-input">
    </div>
  </div>
  <!--提醒时间-->
  <div class="layui-form-item">
    <label class="layui-form-label required">提醒时间：</label>
    <div class="layui-input-inline">
      <input type="" name="remind_time" id="remind_time" lay-verify="required" autocomplete="off" class="layui-input">
    </div>
  </div>
  <!--提醒类型-->
  <div class="layui-form-item">
    <label class="layui-form-label required">提醒类型：</label>
    <div class="layui-input-inline">
      <select name="remind_type" lay-filter="remind_type" lay-verify="required">
        <option value="单次" selected>单次</option>
        <option value="重复">重复</option>
      </select>
    </div>
  </div>
  <!--提醒周期-->
  <div class="layui-form-item">
    <label class="layui-form-label required">提醒周期：</label>
    <div class="layui-input-block">
      <input type="checkbox" name="remind_cycle" value="周一" autocomplete="off">周一
      <input type="checkbox" name="remind_cycle" value="周二" autocomplete="off">周二
      <input type="checkbox" name="remind_cycle" value="周三" autocomplete="off">周三
      <input type="checkbox" name="remind_cycle" value="周四" autocomplete="off">周四
      <input type="checkbox" name="remind_cycle" value="周五" autocomplete="off">周五
      <input type="checkbox" name="remind_cycle" value="周六" autocomplete="off">周六
      <input type="checkbox" name="remind_cycle" value="周日" autocomplete="off">周日
    </div>
  </div>
  <!--提醒频率-->
  <div class="layui-form-item" pane="">
    <label class="layui-form-label required">提醒频率：</label>
    <div class="layui-input-inline">
      <select name="remind_rate" lay-verify="required">
        <option value="" selected>-请选择-</option>
        <option value="5分钟">5分钟</option>
        <option value="10分钟">10分钟</option>
        <option value="15分钟">15分钟</option>
        <option value="30分钟">30分钟</option>
        <option value="1小时">1小时</option>
      </select>
    </div>
  </div>
  <!--备注信息-->
  <div class="layui-form-item">
    <label class="layui-form-label required">备注信息：</label>
    <div class="layui-input-inline">
      <textarea class="layui-textarea" name="remark"></textarea>
    </div>
  </div>
  <!--确认提交-->
  <div class="layui-form-item layui-hide">
    <input type="button" lay-submit lay-filter="LAY-user-front-submit" id="LAY-user-back-submit" value="确认">
  </div>
</form>
<script src="../../static/layui/layui.js"></script>
<script src="../../static/js/jquery-3.6.0.min.js"></script>
<script>
    // <!--    为表单中的客户编号和客户姓名赋值-->
    // let customer_data = JSON.parse(sessionStorage.getItem("cData"))[0];
    // $("input[name=customer_code]").val(customer_data.customer_code);
    // $("input[name=customer_name]").val(customer_data.customer_name);

    layui.use('laydate', function(){
        var laydate = layui.laydate;
        //执行一个laydate实例
        laydate.render({
            elem: '#remind_time', //指定元素
            type: 'datetime' //既含年月日，也含时分秒
        });
    });
</script>
</body>
</html>